3.316 \(\int \cot ^2(e+f x) (a+b \tan ^2(e+f x))^{3/2} \, dx\)

Optimal. Leaf size=114 \[ \frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {(a-b)^{3/2} \tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \]

[Out]

-(a-b)^(3/2)*arctan((a-b)^(1/2)*tan(f*x+e)/(a+b*tan(f*x+e)^2)^(1/2))/f+b^(3/2)*arctanh(b^(1/2)*tan(f*x+e)/(a+b
*tan(f*x+e)^2)^(1/2))/f-a*cot(f*x+e)*(a+b*tan(f*x+e)^2)^(1/2)/f

________________________________________________________________________________________

Rubi [A]  time = 0.14, antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.280, Rules used = {3670, 474, 523, 217, 206, 377, 203} \[ \frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {(a-b)^{3/2} \tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f} \]

Antiderivative was successfully verified.

[In]

Int[Cot[e + f*x]^2*(a + b*Tan[e + f*x]^2)^(3/2),x]

[Out]

-(((a - b)^(3/2)*ArcTan[(Sqrt[a - b]*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f) + (b^(3/2)*ArcTanh[(Sqrt[b]
*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f - (a*Cot[e + f*x]*Sqrt[a + b*Tan[e + f*x]^2])/f

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 377

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 474

Int[((e_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(c*(e*x)^
(m + 1)*(a + b*x^n)^(p + 1)*(c + d*x^n)^(q - 1))/(a*e*(m + 1)), x] - Dist[1/(a*e^n*(m + 1)), Int[(e*x)^(m + n)
*(a + b*x^n)^p*(c + d*x^n)^(q - 2)*Simp[c*(c*b - a*d)*(m + 1) + c*n*(b*c*(p + 1) + a*d*(q - 1)) + d*((c*b - a*
d)*(m + 1) + c*b*n*(p + q))*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0]
 && GtQ[q, 1] && LtQ[m, -1] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rule 523

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/b, I
nt[1/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/((a + b*x^n)*Sqrt[c + d*x^n]), x], x] /; FreeQ[{a, b,
 c, d, e, f, n}, x]

Rule 3670

Int[((d_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*((c_.)*tan[(e_.) + (f_.)*(x_)])^(n_))^(p_.), x_Symbol]
 :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[(c*ff)/f, Subst[Int[(((d*ff*x)/c)^m*(a + b*(ff*x)^n)^p)/(c^
2 + ff^2*x^2), x], x, (c*Tan[e + f*x])/ff], x]] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && (IGtQ[p, 0] || EqQ
[n, 2] || EqQ[n, 4] || (IntegerQ[p] && RationalQ[n]))

Rubi steps

\begin {align*} \int \cot ^2(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (a+b x^2\right )^{3/2}}{x^2 \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}+\frac {\operatorname {Subst}\left (\int \frac {-a (a-2 b)+b^2 x^2}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {(a-b)^2 \operatorname {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}+\frac {b^2 \operatorname {Subst}\left (\int \frac {1}{\sqrt {a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}-\frac {(a-b)^2 \operatorname {Subst}\left (\int \frac {1}{1-(-a+b) x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}+\frac {b^2 \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {\tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}\\ &=-\frac {(a-b)^{3/2} \tan ^{-1}\left (\frac {\sqrt {a-b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}+\frac {b^{3/2} \tanh ^{-1}\left (\frac {\sqrt {b} \tan (e+f x)}{\sqrt {a+b \tan ^2(e+f x)}}\right )}{f}-\frac {a \cot (e+f x) \sqrt {a+b \tan ^2(e+f x)}}{f}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 6.24, size = 724, normalized size = 6.35 \[ \frac {b \left (a^2-2 a b-b^2\right ) \sin ^4(e+f x) \csc (2 (e+f x)) \sqrt {\frac {(a-b) \cos (2 (e+f x))+a+b}{\cos (2 (e+f x))+1}} \sqrt {-\frac {a \cot ^2(e+f x)}{b}} \sqrt {-\frac {a (\cos (2 (e+f x))+1) \csc ^2(e+f x)}{b}} \sqrt {\frac {\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}} F\left (\left .\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt {2}}\right )\right |1\right )}{a f ((a-b) \cos (2 (e+f x))+a+b)}+\frac {4 b \left (a^2-2 a b+b^2\right ) \sqrt {\cos (2 (e+f x))+1} \sqrt {\frac {(a-b) \cos (2 (e+f x))+a+b}{\cos (2 (e+f x))+1}} \left (\frac {\sin ^4(e+f x) \csc (2 (e+f x)) \sqrt {-\frac {a \cot ^2(e+f x)}{b}} \sqrt {-\frac {a (\cos (2 (e+f x))+1) \csc ^2(e+f x)}{b}} \sqrt {\frac {\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}} F\left (\left .\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt {2}}\right )\right |1\right )}{4 a \sqrt {\cos (2 (e+f x))+1} \sqrt {(a-b) \cos (2 (e+f x))+a+b}}-\frac {\sin ^4(e+f x) \csc (2 (e+f x)) \sqrt {-\frac {a \cot ^2(e+f x)}{b}} \sqrt {-\frac {a (\cos (2 (e+f x))+1) \csc ^2(e+f x)}{b}} \sqrt {\frac {\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}} \Pi \left (-\frac {b}{a-b};\left .\sin ^{-1}\left (\frac {\sqrt {\frac {(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt {2}}\right )\right |1\right )}{2 (a-b) \sqrt {\cos (2 (e+f x))+1} \sqrt {(a-b) \cos (2 (e+f x))+a+b}}\right )}{f \sqrt {(a-b) \cos (2 (e+f x))+a+b}}-\frac {a \cot (e+f x) \sqrt {\frac {a \cos (2 (e+f x))+a-b \cos (2 (e+f x))+b}{\cos (2 (e+f x))+1}}}{f} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[e + f*x]^2*(a + b*Tan[e + f*x]^2)^(3/2),x]

[Out]

-((a*Sqrt[(a + b + a*Cos[2*(e + f*x)] - b*Cos[2*(e + f*x)])/(1 + Cos[2*(e + f*x)])]*Cot[e + f*x])/f) + (b*(a^2
 - 2*a*b - b^2)*Sqrt[(a + b + (a - b)*Cos[2*(e + f*x)])/(1 + Cos[2*(e + f*x)])]*Sqrt[-((a*Cot[e + f*x]^2)/b)]*
Sqrt[-((a*(1 + Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b)]*Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/
b]*Csc[2*(e + f*x)]*EllipticF[ArcSin[Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]/Sqrt[2]], 1]*
Sin[e + f*x]^4)/(a*f*(a + b + (a - b)*Cos[2*(e + f*x)])) + (4*b*(a^2 - 2*a*b + b^2)*Sqrt[1 + Cos[2*(e + f*x)]]
*Sqrt[(a + b + (a - b)*Cos[2*(e + f*x)])/(1 + Cos[2*(e + f*x)])]*((Sqrt[-((a*Cot[e + f*x]^2)/b)]*Sqrt[-((a*(1
+ Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b)]*Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]*Csc[2*(e +
 f*x)]*EllipticF[ArcSin[Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]/Sqrt[2]], 1]*Sin[e + f*x]^
4)/(4*a*Sqrt[1 + Cos[2*(e + f*x)]]*Sqrt[a + b + (a - b)*Cos[2*(e + f*x)]]) - (Sqrt[-((a*Cot[e + f*x]^2)/b)]*Sq
rt[-((a*(1 + Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b)]*Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]
*Csc[2*(e + f*x)]*EllipticPi[-(b/(a - b)), ArcSin[Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]/
Sqrt[2]], 1]*Sin[e + f*x]^4)/(2*(a - b)*Sqrt[1 + Cos[2*(e + f*x)]]*Sqrt[a + b + (a - b)*Cos[2*(e + f*x)]])))/(
f*Sqrt[a + b + (a - b)*Cos[2*(e + f*x)]])

________________________________________________________________________________________

fricas [A]  time = 1.28, size = 710, normalized size = 6.23 \[ \left [\frac {2 \, b^{\frac {3}{2}} \log \left (2 \, b \tan \left (f x + e\right )^{2} + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {b} \tan \left (f x + e\right ) + a\right ) \tan \left (f x + e\right ) - {\left (a - b\right )} \sqrt {-a + b} \log \left (-\frac {{\left (a^{2} - 8 \, a b + 8 \, b^{2}\right )} \tan \left (f x + e\right )^{4} - 2 \, {\left (3 \, a^{2} - 4 \, a b\right )} \tan \left (f x + e\right )^{2} + a^{2} + 4 \, {\left ({\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{3} - a \tan \left (f x + e\right )\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) \tan \left (f x + e\right ) - 4 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} a}{4 \, f \tan \left (f x + e\right )}, -\frac {4 \, \sqrt {-b} b \arctan \left (\frac {\sqrt {-b} \tan \left (f x + e\right )}{\sqrt {b \tan \left (f x + e\right )^{2} + a}}\right ) \tan \left (f x + e\right ) + {\left (a - b\right )} \sqrt {-a + b} \log \left (-\frac {{\left (a^{2} - 8 \, a b + 8 \, b^{2}\right )} \tan \left (f x + e\right )^{4} - 2 \, {\left (3 \, a^{2} - 4 \, a b\right )} \tan \left (f x + e\right )^{2} + a^{2} + 4 \, {\left ({\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{3} - a \tan \left (f x + e\right )\right )} \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {-a + b}}{\tan \left (f x + e\right )^{4} + 2 \, \tan \left (f x + e\right )^{2} + 1}\right ) \tan \left (f x + e\right ) + 4 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} a}{4 \, f \tan \left (f x + e\right )}, -\frac {{\left (a - b\right )}^{\frac {3}{2}} \arctan \left (-\frac {2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a - b} \tan \left (f x + e\right )}{{\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{2} - a}\right ) \tan \left (f x + e\right ) - b^{\frac {3}{2}} \log \left (2 \, b \tan \left (f x + e\right )^{2} + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {b} \tan \left (f x + e\right ) + a\right ) \tan \left (f x + e\right ) + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} a}{2 \, f \tan \left (f x + e\right )}, -\frac {{\left (a - b\right )}^{\frac {3}{2}} \arctan \left (-\frac {2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} \sqrt {a - b} \tan \left (f x + e\right )}{{\left (a - 2 \, b\right )} \tan \left (f x + e\right )^{2} - a}\right ) \tan \left (f x + e\right ) + 2 \, \sqrt {-b} b \arctan \left (\frac {\sqrt {-b} \tan \left (f x + e\right )}{\sqrt {b \tan \left (f x + e\right )^{2} + a}}\right ) \tan \left (f x + e\right ) + 2 \, \sqrt {b \tan \left (f x + e\right )^{2} + a} a}{2 \, f \tan \left (f x + e\right )}\right ] \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="fricas")

[Out]

[1/4*(2*b^(3/2)*log(2*b*tan(f*x + e)^2 + 2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(b)*tan(f*x + e) + a)*tan(f*x + e) -
 (a - b)*sqrt(-a + b)*log(-((a^2 - 8*a*b + 8*b^2)*tan(f*x + e)^4 - 2*(3*a^2 - 4*a*b)*tan(f*x + e)^2 + a^2 + 4*
((a - 2*b)*tan(f*x + e)^3 - a*tan(f*x + e))*sqrt(b*tan(f*x + e)^2 + a)*sqrt(-a + b))/(tan(f*x + e)^4 + 2*tan(f
*x + e)^2 + 1))*tan(f*x + e) - 4*sqrt(b*tan(f*x + e)^2 + a)*a)/(f*tan(f*x + e)), -1/4*(4*sqrt(-b)*b*arctan(sqr
t(-b)*tan(f*x + e)/sqrt(b*tan(f*x + e)^2 + a))*tan(f*x + e) + (a - b)*sqrt(-a + b)*log(-((a^2 - 8*a*b + 8*b^2)
*tan(f*x + e)^4 - 2*(3*a^2 - 4*a*b)*tan(f*x + e)^2 + a^2 + 4*((a - 2*b)*tan(f*x + e)^3 - a*tan(f*x + e))*sqrt(
b*tan(f*x + e)^2 + a)*sqrt(-a + b))/(tan(f*x + e)^4 + 2*tan(f*x + e)^2 + 1))*tan(f*x + e) + 4*sqrt(b*tan(f*x +
 e)^2 + a)*a)/(f*tan(f*x + e)), -1/2*((a - b)^(3/2)*arctan(-2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(a - b)*tan(f*x +
 e)/((a - 2*b)*tan(f*x + e)^2 - a))*tan(f*x + e) - b^(3/2)*log(2*b*tan(f*x + e)^2 + 2*sqrt(b*tan(f*x + e)^2 +
a)*sqrt(b)*tan(f*x + e) + a)*tan(f*x + e) + 2*sqrt(b*tan(f*x + e)^2 + a)*a)/(f*tan(f*x + e)), -1/2*((a - b)^(3
/2)*arctan(-2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(a - b)*tan(f*x + e)/((a - 2*b)*tan(f*x + e)^2 - a))*tan(f*x + e)
 + 2*sqrt(-b)*b*arctan(sqrt(-b)*tan(f*x + e)/sqrt(b*tan(f*x + e)^2 + a))*tan(f*x + e) + 2*sqrt(b*tan(f*x + e)^
2 + a)*a)/(f*tan(f*x + e))]

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} \cot \left (f x + e\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="giac")

[Out]

integrate((b*tan(f*x + e)^2 + a)^(3/2)*cot(f*x + e)^2, x)

________________________________________________________________________________________

maple [C]  time = 1.55, size = 3333, normalized size = 29.24 \[ \text {output too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x)

[Out]

-1/f*(2^(1/2)*((I*cos(f*x+e)*(a-b)^(1/2)*b^(1/2)-I*(a-b)^(1/2)*b^(1/2)+a*cos(f*x+e)-b*c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+a-2*b)/a)^(1/2)*a*b)*cos(f*x+e)^3*((a*cos(f*x+e)^2
-cos(f*x+e)^2*b+b)/cos(f*x+e)^2)^(3/2)/sin(f*x+e)/(a*cos(f*x+e)^2-cos(f*x+e)^2*b+b)^2/((2*I*(a-b)^(1/2)*b^(1/2
)+a-2*b)/a)^(1/2)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac {3}{2}} \cot \left (f x + e\right )^{2}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="maxima")

[Out]

integrate((b*tan(f*x + e)^2 + a)^(3/2)*cot(f*x + e)^2, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\mathrm {cot}\left (e+f\,x\right )}^2\,{\left (b\,{\mathrm {tan}\left (e+f\,x\right )}^2+a\right )}^{3/2} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(e + f*x)^2*(a + b*tan(e + f*x)^2)^(3/2),x)

[Out]

int(cot(e + f*x)^2*(a + b*tan(e + f*x)^2)^(3/2), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac {3}{2}} \cot ^{2}{\left (e + f x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)**2*(a+b*tan(f*x+e)**2)**(3/2),x)

[Out]

Integral((a + b*tan(e + f*x)**2)**(3/2)*cot(e + f*x)**2, x)

________________________________________________________________________________________